﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script src="../load.js?callback=InitList&release=0" type="text/javascript"></script>
</head>
<body>
    <form action="proxyforcity.aspx" target="helper" method="post">
    <input name="m" style="display: none;" value="ListCityAreaStreet" />
    <div class="d_topbox">


        <div class="top_search_box">
            <input value="添加城区" type="button" class="btn01_bn" onclick="window.location.replace('AddCity.htm');" />
            <input value="添加片区" type="button" class="btn01_bn" onclick="window.location.replace('AddArea.htm');" />
            <input value="添加街道" type="button" class="btn01_bn" onclick="window.location.replace('AddStreet.htm');" />
       </div>
    </div>
    <div class="table_box">
        <table id="tb_list" width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr class="td_title">                
                <td align="left" style="width:30%;" class="left_bg">
                    名称
                </td>
                <td align="center">
                    编码
                </td>
                <td align="center">
                    所属城区/片区
                </td>
                <td align="center">
                    顺序
                </td>
                <td align="center">
                    类型
                </td>
                <td colspan="2" align="center"  class="right_bg">
                    操作
                </td>
            </tr>
        </table>
        <script id="tmpl_list" type="text/x-jquery-tmpl">  
        <tr id="{{= type }}{{= id }}" {{if type=='a' }}class="child-of-c{{= pid}}"{{else type=="s"}}class="child-of-a{{= pid}}"{{else}} {{/if}} style="background-color:{{= GetListItemBg() }}">            
            <td align="left">{{= name}}</td>            
            <td align="center">${id}</td>
            <td align="center">{{= pname}}</td>
            <td align="center">${order}</td>
            <td align="center">{{if type=="c"}}城区{{else type=="a"}}片区{{else}}街道{{/if}}</td>
            <td align="center">
                <a href="javascript:Edit({{= id }},'{{= type}}');">修改</a>&nbsp; 
                <a href="javascript:Delete({{= id }},'{{= type}}');">删除</a>&nbsp;
            </td>
        </tr>          
        </script>
    </div>
    </form>
    <iframe id="helper" name="helper" style="display: none;"></iframe>
</body>
</html>
